package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.beans.Book;

@Mapper
public interface BookMapper {
    int addBook(Book user);

    Integer updateBook(Book user);

    int deleteBook(int id);

    Book getBookById(int id);

    List<Book> getAllBook();

    List<Book> getBooks(@Param("userName") String userName);

}
